<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 
    


<ui:composition template="/WEB-INF/layout/templateRelatorio.xhtml">
	<ui:define name="conteudo">	

	<legend> Unidades </legend>

<h:form>
	<h:dataTable value="#{categoriaChamadoBean.listaTodos()}" var="categoria" class="table table-striped">
		<h:column>
			<f:facet name="header"> Id </f:facet>
			#{categoria.id}
		</h:column>	
		
		<h:column>
			<f:facet name="header"> Descricao </f:facet>
			<h:commandLink action="#{categoriaChamadoBean.editar(categoria)}">
				#{categoria.descricao}
			</h:commandLink>
		</h:column>	
				
		<h:column>
			<f:facet name="header"> Actions </f:facet>
			<h:commandLink action="#{categoriaChamadoBean.excluir(categoria)}">
				excluir
			</h:commandLink>
		</h:column>	
	</h:dataTable>
</h:form>	
		
	</ui:define>
</ui:composition>

</html>

